#ifndef SHARE_MEMORY_ALLOCATION_H
#define SHARE_MEMORY_ALLOCATION_H

#include "utilities/top.h"

class AllStatic
{
public:
  AllStatic()  { ShouldNotCallThis(); }
  ~AllStatic() { ShouldNotCallThis(); }
};


// Base class for objects allocated on the stack only.
// Calling new or delete will result in fatal error.

class StackObj {
private:
    void *operator new(size_t size) throw();

    void *operator new[](size_t size) throw();

    void operator delete(void *p);

    void operator delete[](void *p);
};

#endif

